<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <h1>我的订单</h1>
        <hr/>


        ${order.user.username}用户${order.no}订单<br/>
        -------------------------------------------<br>
        <table border="0">
            <tr>
                <th>序号</th>
                <th>商品</th>
                <th>数量</th>
                <th>价格</th>
            </tr>


            <c:forEach items="${order.items}" var="item" varStatus="s">
                <tr>
                    <td>${s.count}</td>
                    <td>${item.product.name}</td>
                    <td>${item.num}</td>
                    <td>${item.price}</td>
                </tr>
            </c:forEach>


        </table>
        -------------------------------------------<br>
        共${order.count}条&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;总计：${order.price}元<br/>
        <a href="${pageContext.request.contextPath}/findByUserId.order">返回</a>

    </body>
</html>
